package animal;

class Animal {
    public String name;
    public int age;
    public double weight;

    Animal() {

    }
    public Animal(String name, int age, double weight) {
        this.name = name;
        this.age = age;
        this.weight = weight;
        System.out.println("Animal的构造代码块被执行了.........");
    }
    static {

        System.out.println("Animal::static");
    }
    {
        System.out.println("Animal实例代码块被执行了.....");
    }

    public void eat() {
        System.out.println(this.name+"正在吃饭...........");
    }
}